<template>
  <div>
    <p>我是弟弟</p>
    <p>来自哥哥的礼物：{{goods}}</p>
  </div>
</template>
<script>
import bus from '../utils/bus'
export default {
  data() {
    return {
      goods: ''
    };
  },
  mounted(){
    bus.$on('abc',this.bfo)
  },
  methods:{
    bfo(val){
      console.log(val);
      this.goods = val
    }
  }
};
</script>